package java_class_work.week05;

import java.io.File;

public class FileOperator3 {

    public static void main(String[] args) {
        File file = new File(".\\src\\java_class_work");
        df(file);
    }

    /**
     * 递归遍历目录下所有文件
     * @param file
     */
    static void df(File file){
        System.out.println(file.getName());
        if (file.isDirectory())
            for (File f : file.listFiles()) df(f);
    }
}
